let Mock=require('mockjs')
import {papers} from './paper'


let addPaper=Mock.mock('/addPaper',(data:any)=>{
    let paper=JSON.parse(data.body)
    papers.push(paper)

})


let getPaper=Mock.mock('/getPaper',()=>{
    return papers
})